<html lang="zh-cnm-Hans">
<head>
    <meta charset="utf-8"/>
    <title>Go 路由功能测试数据</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta name="generator" content="https://github.com/caixw/go-http-routers-testing"/>
    <meta name="author" content="https://caixw.io"/>
    <meta name="keywords" content="go,golang,benchmark,testing,route,routes,router,mux"/>
    <meta name="description" content="Google Go 语言主要路由功能、性能测试工具。"/>
    <link rel="icon" href="./favicon.ico"/>
    <link href="./style.css" type="text/css" rel="stylesheet"/>
    <script src="./table.js"></script>
</head>

<body>
<script type="module">
    import { createApp } from 'https://unpkg.com/petite-vue?module';
    const root = './data/';

    createApp({
        apis: [],

        mounted(el) {
            const file = window.location.search.substr(1);
            fetch(root + file).then(resp => {
                return resp.json()
            }).then(data => {
                this.apis = data;
            }).catch(reason => {
                throw reason
            });
        }
    }).mount();
</script>
<article @vue:mounted="mounted">
    <h1>Go 路由功能测试数据</h1>
    <p>未命中的路由记录</p>
    <table>
        <thead>
            <tr>
                <th>路由项</th>
                <th>请求地址</th>
                <th>返回</th>
            </tr>
        </thead>
        <tbody>
            <tr v-for="api in apis">
                <td>{{api.method}}&#160;{{api.want}}</td>
                <td>{{api.path}}</td>
                <td>{{api.body}}</td>
            </tr>
        </tbody>
    </table>
</article>

<footer>
    <p>&copy; 2017-2022 by
        <a href="https://caixw.io">caixw</a> &middot;
        <a href="https://github.com/caixw/go-http-routers-testing">Github</a>
    </p>
</footer>
</body>
</html>

